module.exports = (app) => {
  const BaseController = require("./base")(app);
  return class ViewController extends BaseController {
    /**
     * 获取列表接口
     * @param {object} 上下文 渲染页面
     * */
    async getList(ctx) {
      const { project: projectService } = app.service;
      const res = await projectService.getList();
      this.success(ctx, res);
    }
  };
};
